package com.jic.order.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ParentOrderModel implements Serializable {

	//主键ID
	private long id;
	private String serialNo;
	private Integer saleChannel;
	//订单父编号
	private String parentOrderNo;
	//购买人
	private long buyerId;
	// 是否分销员 1.是 2.否
	private Integer buyerType;
	//收货人省id
	private long receiverProvinceId;
	//收货人省名称
	private String receiverProvinceName;
	//收货人市id
	private long receiverCityId;
	//收货人市名称
	private String receiverCityName;
	//收货人区/县id
	private long receiverCountryId;
	//收货人区/县名称
	private String receiverRegionName;
	//收货人名字
	private String receiverName;
	//收货人电话
	private String receiverPhone;
	//收货人详细地址
	private String receiverAddress;
	//销售总金额
	private BigDecimal saleTotalAmount;
	//优惠总金额，优惠金额=销售总金额-购买总金额
	private BigDecimal discountTotalAmount;
	//购买总金额，购买总金额=销售总金额-优惠总金额
	private BigDecimal buyTotalAmount;
	//物流总费
	private BigDecimal expressTotalFee;
	//实付总金额，实付总金额=购买总金额+物流总费
	private BigDecimal actualPayTotalAmount;
	//状态，待支付、已支付、已关闭
	private Integer orderStatus;
	//支付方式，支付宝、微信、银联
	private Integer payWay;
	//支付总金额
	private BigDecimal payAmount;
	//支付流水号
	private String payNo;
	//支付时间
	private Date payTime;
	//版本号
	private long version;

	private List<OrderModel> orderModelList = new ArrayList<>();
}
